package p270jp.pxv.android.authentication.presentation.activity;

import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.BackStackRecord;
import androidx.fragment.app.FragmentContainerView;
import java.util.Objects;
import p072ce.ViewGridSelfServeBinding;
import p089d.C2419a;
import p270jp.pxv.android.R;
import p270jp.pxv.android.authentication.domain.model.AuthorizationCode;
import p270jp.pxv.android.authentication.domain.model.AuthorizationVia;
import p325m0.MutabilityOwnership;
import p518te.AbstractActivityC6264b;
import p603wm.Tuples;
import p621xe.PKCEVerificationFragment;

/* compiled from: PKCEVerificationActivity.kt */
/* renamed from: jp.pxv.android.authentication.presentation.activity.PKCEVerificationActivity */
/* loaded from: classes2.dex */
public final class PKCEVerificationActivity extends AbstractActivityC6264b {

    /* renamed from: v */
    public ViewGridSelfServeBinding f18881v;

    @Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        View inflate = getLayoutInflater().inflate(R.layout.activity_pkce_verification, (ViewGroup) null, false);
        Objects.requireNonNull(inflate, "rootView");
        FragmentContainerView fragmentContainerView = (FragmentContainerView) inflate;
        this.f18881v = new ViewGridSelfServeBinding(fragmentContainerView, fragmentContainerView, 1);
        setContentView(fragmentContainerView);
        Parcelable parcelableExtra = getIntent().getParcelableExtra("extra_key_code");
        if (parcelableExtra != null) {
            AuthorizationCode authorizationCode = (AuthorizationCode) parcelableExtra;
            Parcelable parcelableExtra2 = getIntent().getParcelableExtra("extra_key_via");
            if (parcelableExtra2 != null) {
                PKCEVerificationFragment bVar = new PKCEVerificationFragment();
                bVar.setArguments(C2419a.m7858f(new Tuples("bundle_key_code", authorizationCode), new Tuples("bundle_key_via", (AuthorizationVia) parcelableExtra2)));
                BackStackRecord cVar = new BackStackRecord(m11131K0());
                ViewGridSelfServeBinding cVar2 = this.f18881v;
                if (cVar2 != null) {
                    cVar.m11165j(((FragmentContainerView) cVar2.f5402c).getId(), bVar);
                    cVar.mo11171d();
                    return;
                }
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
            throw new IllegalArgumentException("Required value was null.".toString());
        }
        throw new IllegalArgumentException("Required value was null.".toString());
    }
}
